package cn.yunhe.action;

public class LoginAction extends BaseAction{
    private String username;
    private  String password;
    private String target;

    public String execute() throws  Exception{
        if("scott".equals(username)&& "tiger".equals(password)){
            this.getMapRequest().put("username",username);
            this.target = SUCCESS;
        }else{
            this.target =INPUT;

        }
        return "doWith";
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }
}
